package zju.lzy.service;


import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


/**
 * @author lzy
 */
@Component
@PropertySource("classpath:iot.properties")
@ConfigurationProperties(prefix = "iot")
@Data
public class IOTProperties {
    String prefix;
    String server;
    int maxInterval;
    int cacheFlushInterval;
}
